
function funcXoaUserName(mand)
{		
	var hoi_Xoa = confirm("Bạn có muốn xóa UserName có mã tài khoản " + mand + " không?");
	if(!hoi_Xoa)
	{
		return;
	}
	else
	{
		var strURL = "controls/ucXoaUserName.php?txtMaND=" + mand +
												"&t=" + (new Date()).getTime();
		var idKetQua = "nguoidung_" + mand;
		funcAJAX_GET(idKetQua, strURL);
	}
}


function funcSuaUserName(mand)
{
	var strURL = "controls/ucSuaUserName.php?txtMaND=" + mand + "&t=" + (new Date()).getTime();
	var idKetQua = "nguoidung_" + mand;
	funcAJAX_GET(idKetQua, strURL);	
}

function funcLuuCapNhatCapQuyen(maND, type)
{	
	var tinhtrang = document.getElementById('edit_tinhtrang').value;
	var loaiND = document.getElementById('edit_loaiND').value;
	var strURL;
	if (type == 1)
	{	
		strURL = "controls/ucXLSuaUserName.php?txtMaND=" + maND + 
											"&txtTinhTrang=" + tinhtrang +
											"&loaiND=" + loaiND + "&t=" + (new Date()).getTime();
	}
	else
	{
		strURL = "controls/ucXLHuySuaUserName.php?txtMaND=" + maND + "&t=" + (new Date()).getTime();	
	}
	//alert(strURL);
	var idKetQua = "nguoidung_" + maND;
	funcAJAX_GET(idKetQua, strURL);	
}
